#ifndef PAGELCUBOARDSWITCH_H
#define PAGELCUBOARDSWITCH_H

#include <QWidget>
#include <QDesktopWidget>
#include <QPushButton>
#include <QSignalMapper>
#include <QLabel>
#include "global_def.h"
#include "popupdialog.h"

namespace Ui {
class PageLCUBoardSwitch;
}

class PageLCUBoardSwitch : public QWidget
{
    Q_OBJECT

public:
    explicit PageLCUBoardSwitch(QWidget *parent = nullptr);
    ~PageLCUBoardSwitch();
    void setPageActive(bool xActive);
signals:
    void returnToMaintMenu();
    void signal_ForceLCU(int,bool);
private slots:
    void on_Btn_Return_clicked();
    void on_Btn_LCUA_clicked(bool checked);
    void on_Btn_LCUB_clicked(bool checked);
    void on_Btn_LCUAuto_clicked(bool checked);
private:
    Ui::PageLCUBoardSwitch *ui;
private:
    void InitLCUSwitchBtns();
private:
    QList<QPushButton *> m_lLCUSwitchBtnList;
    QSignalMapper *m_pSignalMapper=nullptr;
};

#endif // PAGELCUBOARDSWITCH_H
